import instance from '@/utils/request'
// 获取权限列表
export const getPermissionList = () => instance.get('/sys/permission')
// 新增权限
export const addPermission = (data) => instance.post('/sys/permission', data)
// 获取权限详情
export const getPermissionDetail = (id) => instance.get(`/sys/permission/${id}`)
// 修改权限
export const updatePermission = (data) => instance.put(`/sys/permission/${data.id}`, data)
// 删除权限
export const delPermission = (id) => instance.delete(`/sys/permission/${id}`)
